package han;

public class J09Retangle {

	public static void main(String[] args) {
		double width[] = new double[3];
		double height[] = new double[3];
		double getArea[] = new double[3];
		double getPerimeter[] = new double[3];
		String color[] = new String[3];
		String result = "";
		
		
		width(width);
		height(height);
		color(color);
		getArea(getArea, width, height);
		getPerimeter(getPerimeter, width, height);
		
		
		
		for(int i=1;i<=2;++i){
			result+=width[i]+"\t"+height[i]+"\t"+color[i]+"\t"+getArea[i]+"\t"+getPerimeter[i]+"\n";
		}
		System.out.println(result);
	}
	public static void width(double[] width){
		width[1]=4;
		width[2]=3.5;
	}
	public static void height(double[] height){
		height[1]=40;
		height[2]=35.9;
		
	}
	public static void color(String[] color){
		color[1] ="White";
		color[2]="oranger";
	}
	public static void getArea(double[] getArea,double[] width,double[] height){
		getArea[1] = width[1] * height[1];
		getArea[2] = width[2] * height[2];
	}
	public static void getPerimeter(double[] getPerimeter,double[] width,double[] height){
		getPerimeter[1] = (width[1] + height[1]) * 2;
		getPerimeter[2] = (width[2] + height[2]) * 2;
	}
}
